#ifndef CANSET_H
#define CANSET_H

#include <QDialog>
#include "ECanVci.h"
#include "canreadthread.h"
#include "cansdthread.h"
#include <QTime>
#include <QButtonGroup>
#include <QFileDialog>
#include "cansdthread.h"
namespace Ui {
class CANset;
}

class CANset : public QDialog
{
    Q_OBJECT

public:
    explicit CANset(QWidget *parent = nullptr);
    ~CANset();

private slots:
    void on_pushButton_OpenDevice_clicked();
    void on_pushButton_StartCAN_clicked();
    void show_updata();


    void on_pushButton_close_clicked();

    void on_pushButton_reset_clicked();

    void on_pushButton_off_clicked();

    void on_comboBox_DevType_activated(int index);

    void on_comboBox_Baud_rate_activated(int index);

    void on_comboBox_Baud_rate_1_activated(int index);

    void on_pushButton_datasave_clicked();

    void on_pushButton_setfileroute_clicked();

    void on_pushButton_clear_clicked();

private:
    Ui::CANset *ui;
    QTimer *show_diplay;
    CanReadThread *canreadthread;
    CanSDThread *cansdthread;
    DWORD dwRel_closed,dwRel_Rest;
    int can_index;


};

#endif // CANSET_H
